package com.wm.walmart.util;

import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 系统Token令牌对象:存储用户信息 和用户权限信息 当登录成功以后把Token令牌信息响应给客户端, 服务器每次通过token 对请求进行 登录拦截
 * 
 * @Description: Token令牌对象
 */
public class Token implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer userId;// 用户Id

	private String userName;// 用户名

	private String password;// 用户密码

	public Token() {
		// TODO Auto-generated constructor stub
	}

	public Token(Integer userId, String userName, String password) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.password = password;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "Token [userId=" + userId + ", userName=" + userName + ", password=" + password + "]";
	}
}
